package com.lwx.suanfa.rsa;

import java.io.FileInputStream;

import sun.misc.BASE64Encoder;

public class BaseMain {

    /**
     * @author liangwenxin
     * @param args
     * @throws Exception 
     */
    public static void main(String[] args) throws Exception {
        byte[] b = new byte[2048];
        //FileInputStream in = new FileInputStream("f:\\new\\META-INF\\CERT.RSA");
        FileInputStream in = new FileInputStream("f:\\CERT.RSA");
        in.read(b);
        BASE64Encoder base64 = new BASE64Encoder();
        System.out.println(Base64Util.encode(b));
    }
}
